Menu
eslint-config-sc-js#
This package sets some rules based on the shared config of below packages.
And, set some rules from eslint-plugin-import.
Usage#
Installation#
1$ npm i -D eslint-config-sc-js
Setup#
1// eslint.config.mjs
2import eslintConfigSCJs from "eslint-config-sc-js"
3
4return [
5 eslintConfigSCJs.configs.recommended,
6].flat()
Equally
1// eslint.config.mjs
2import eslintConfigSCJs from "eslint-config-sc-js"
3
4return [
5 eslintConfigSCJs.configs.initialRecord,
6 eslintConfigSCJs.configs.stylisticRecord,
7 eslintConfigSCJs.configs.eslintRecommendedRecord,
8 eslintConfigSCJs.configs.unicornRecommendedRecords,
9
10 // This use eslint-config-airbnb-base
11 // For react project, this replace to eslint-config-airbnb
12 eslintConfigSCJs.configs.airbnbBaseRecords,
13
14 // This is the custom config of eslint-config-sc-js
15 eslintConfigSCJs.configs.customRecord,
16
17 // This is the reset config for @stylistic
18 eslintConfigSCJs.configs.resetRecordForStylistic,
19].flat()