mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
feat(eslint): add linter configuration
This commit is contained in:
9
.eslintignore
Normal file
9
.eslintignore
Normal 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
18
.eslintrc.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user