♻️ Add shared eslint config
This commit is contained in:
23
packages/eslint-config-custom/index.js
Normal file
23
packages/eslint-config-custom/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
extends: ['next', 'prettier'],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
{
|
||||
patterns: [
|
||||
'*/src/*',
|
||||
'src/*',
|
||||
'*/src',
|
||||
'@/features/*/*',
|
||||
'!@/features/blocks/*',
|
||||
'!@/features/*/api',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
10
packages/eslint-config-custom/package.json
Normal file
10
packages/eslint-config-custom/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "eslint-config-custom",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"eslint": "8.28.0",
|
||||
"eslint-config-next": "13.0.4",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-react": "7.31.11"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user