eslint setup
This commit is contained in:
parent
3ff123a285
commit
15609b56e2
13
front/.eslintrc.js
Normal file
13
front/.eslintrc.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
es6: true,
|
||||
},
|
||||
extends: ["airbnb-typescript/base", "prettier"],
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint", "prettier"],
|
||||
rules: {
|
||||
"no-unused-vars": "off", // broken with typescript
|
||||
"import/no-unresolved": "off", // conflicting with typescript
|
||||
"import/extensions": "off", // conflicting with typescript
|
||||
},
|
||||
};
|
|
@ -9,6 +9,13 @@
|
|||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.4.0",
|
||||
"@typescript-eslint/parser": "^4.4.0",
|
||||
"eslint": "^7.10.0",
|
||||
"eslint-config-airbnb-typescript": "^11.0.0",
|
||||
"eslint-config-prettier": "^6.12.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"prettier": "^2.1.2",
|
||||
"typescript": "^4.0.3"
|
||||
}
|
||||
|
|
1446
front/yarn.lock
1446
front/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue