feat(eslint): add linter configuration

This commit is contained in:
r3nanp 2021-02-13 09:55:38 -03:00
parent 9f0e246f64
commit 14ee2e3137
2 changed files with 27 additions and 0 deletions

9
.eslintignore Normal file
View File

@ -0,0 +1,9 @@
# Ignore artifacts:
dist
lib
npm-debug.log
bower_components
node_modules
yarn-error.log
yarn.lock

18
.eslintrc.json Normal file
View File

@ -0,0 +1,18 @@
{
"env": {
"browser": true,
"es2021": true,
"mocha": true
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"prefer-const": "off",
"camelcase": "off"
}
}