eslint setup

This commit is contained in:
selfisekai 2020-10-06 00:44:57 +02:00
parent 3ff123a285
commit 15609b56e2
3 changed files with 1466 additions and 0 deletions

13
front/.eslintrc.js Normal file
View 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
},
};

View file

@ -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"
}

File diff suppressed because it is too large Load diff