@pareto-engineering/eslint-config 0.0.0-alpha.0 → 0.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +13 -0
- package/package.json +10 -2
- package/schema.graphql +4534 -0
package/index.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
parser :'@babel/eslint-parser',
|
|
2
3
|
root :true,
|
|
3
4
|
settings:{
|
|
4
5
|
'import/resolver':{
|
|
5
6
|
'babel-module':{},
|
|
6
7
|
},
|
|
8
|
+
/* Normally unnecessary since using the babel settings
|
|
9
|
+
"import/resolver": {
|
|
10
|
+
"node": {
|
|
11
|
+
"extensions": [".scss"],
|
|
12
|
+
"moduleDirectory": ["src", "node_modules"]
|
|
13
|
+
}
|
|
14
|
+
}*/
|
|
7
15
|
},
|
|
16
|
+
// We are adding the settings below to make sure eslint is able to resolve
|
|
17
|
+
// .scss files when importing them in .js files.
|
|
8
18
|
env:{
|
|
9
19
|
browser:true,
|
|
10
20
|
node :true,
|
|
@@ -81,6 +91,9 @@ module.exports = {
|
|
|
81
91
|
'import/no-cycle':[
|
|
82
92
|
0,
|
|
83
93
|
],
|
|
94
|
+
'import/extensions':[
|
|
95
|
+
0,
|
|
96
|
+
],
|
|
84
97
|
camelcase:[
|
|
85
98
|
0,
|
|
86
99
|
],
|
package/package.json
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/eslint-config",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@
|
|
9
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
10
|
+
"@graphql-eslint/eslint-plugin": "^3.16.0",
|
|
11
|
+
"eslint": "^8.34.0",
|
|
12
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
13
|
+
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
14
|
+
"eslint-plugin-import": "^2.27.5",
|
|
15
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
16
|
+
"eslint-plugin-react": "^7.32.2",
|
|
17
|
+
"eslint-plugin-react-hooks": "^4.6.0"
|
|
10
18
|
}
|
|
11
19
|
}
|