Add tools for JavaScript styling
parent
b020cb485c
commit
0c126aca45
|
|
@ -0,0 +1,17 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2021: true,
|
||||
},
|
||||
extends: ["airbnb-base", "prettier"],
|
||||
plugins: ["prettier"],
|
||||
rules: {
|
||||
"class-methods-use-this": "off",
|
||||
"prettier/prettier": "error",
|
||||
curly: ["error", "all"],
|
||||
"no-console": "off",
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: "latest",
|
||||
},
|
||||
};
|
||||
|
|
@ -3,4 +3,5 @@
|
|||
.env
|
||||
.vscode
|
||||
\.*.sw*
|
||||
node_modules
|
||||
wildcards
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"eslint": "^8.2.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"prettier": "^2.8.7"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext .js"
|
||||
},
|
||||
"prettier": {
|
||||
"trailingComma": "all"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue