Strict Check

eslint-config-sc-next#

This package sets some rules based on the shared config of below packages.

Usage#

Installation#

1$ npm i -D eslint-config-sc-next

Setup#

For Javascript project

1// eslint.config.mjs
2import eslintConfigSCNext from "eslint-config-sc-next"
3
4return [
5  eslintConfigSCNext.configs.recommended,
6].flat()

Equally

1// eslint.config.mjs
2import eslintConfigSCNext from "eslint-config-sc-next"
3
4return [
5  eslintConfigSCNext.configs.initialRecord,
6  eslintConfigSCNext.configs.stylisticRecord,
7  eslintConfigSCNext.configs.eslintRecommendedRecord,
8  eslintConfigSCNext.configs.unicornRecommendedRecords,
9  eslintConfigSCNext.configs.reactRecords,
10  eslintConfigSCNext.configs.nextRecords,
11  eslintConfigSCNext.configs.airbnbRecords,
12
13  // This is the custom config of eslint-config-sc-js / eslint-config-sc-next
14  eslintConfigSCNext.configs.scJsCustomRecord,
15  eslintConfigSCNext.configs.scRectCustomRecord,
16
17  // This is the reset config for stylistic
18  eslintConfigSCNext.configs.resetRecordForStylistic,
19].flat()

For Typescript project

1// eslint.config.mjs
2import eslintConfigSCTs from "eslint-config-sc-ts"
3import eslintConfigSCNext from "eslint-config-sc-next"
4
5return [
6  eslintConfigSCNext.configs.initialRecord,
7  eslintConfigSCNext.configs.stylisticRecord,
8  eslintConfigSCNext.configs.eslintRecommendedRecord,
9  eslintConfigSCTs.configs.typescriptEslintStrictTypeCheckedRecords,
10  eslintConfigSCTs.configs.typescriptEslintStylisticTypeCheckedRecords,
11  eslintConfigSCNext.configs.unicornRecommendedRecords,
12  eslintConfigSCNext.configs.reactRecords,
13  eslintConfigSCNext.configs.nextRecords,
14  eslintConfigSCNext.configs.airbnbRecords,
15
16  eslintConfigSCNext.configs.scJsCustomRecord,
17  eslintConfigSCTs.configs.customRecords,
18  eslintConfigSCNext.configs.customRecord,
19  eslintConfigSCNext.configs.customRecordWithTypescript,
20
21  // This is the reset config for stylistic
22  eslintConfigSCNext.configs.resetRecordForStylistic,
23].flat()