npm install --save-dev eslint @cabe/eslint-config @babel/core @babel/eslint-parser
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": ["@cabe"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": [],
"settings": {}
}
npm install --save-dev eslint @cabe/eslint-config @cabe/eslint-config-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": ["@cabe/typescript"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"settings": {}
}
npm install --save-dev eslint @cabe/eslint-config @babel/core @babel/eslint-parser eslint-plugin-react eslint-plugin-react-hooks
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": [
"@cabe",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks"
],
"settings": {
"react": {
"version": "detect"
}
}
}