Eslint specs - Mokerstier/Techteam-partematch GitHub Wiki
Eslint for this project is configured like so:
Eslint dependecies
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
Eslint configs
The following rules are defining style choices for this project
eslintrc.json
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "standard",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"semi": ["error", "always"],
"indent": ["error", "tab"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"quotes": ["error", "single"]
}
There is also added a .eslintignore
to exclude the node_modules
directory