Merge pull request #69 from Safelite/enhancement/add-eslint
Add eslint and the configuration needed to lint javascript and vue files. Please note that these commits do not enforce the rules unless eslint command is executed manually. So these rules are not going to interfere with our current process until we have a discussion what style we should be using and started to enforce it in our process. It is still a good start to have these settings so if anyone want to lint their code they can by running the command below. npx eslint [specific file if neeeded]
This commit is contained in:
commit
69d96e3e2d
3 changed files with 2454 additions and 29 deletions
17
.eslintrc.js
Normal file
17
.eslintrc.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module.exports = {
|
||||
extends: [
|
||||
'eslint-config-airbnb-base',
|
||||
'plugin:vue/vue3-strongly-recommended'
|
||||
],
|
||||
rules: {
|
||||
'linebreak-style': 'off'
|
||||
},
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
alias: {
|
||||
map: [['@', './src/']],
|
||||
extensions: ['.js', '.vue']
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
2461
package-lock.json
generated
2461
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -29,6 +29,11 @@
|
|||
"@vue/test-utils": "^2.0.0-0",
|
||||
"@vue/vue3-jest": "^27.0.0-alpha.1",
|
||||
"babel-jest": "^27.0.6",
|
||||
"eslint": "8.29.0",
|
||||
"eslint-config-airbnb-base": "15.0.0",
|
||||
"eslint-import-resolver-alias": "1.1.2",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-vue": "9.8.0",
|
||||
"jest": "^27.0.5",
|
||||
"sass": "^1.32.7",
|
||||
"sass-loader": "^12.0.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue