Commit 513f2f13 authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Added ESLint

parent efa8a837
Pipeline #125402 failed with stages
in 1 minute and 55 seconds
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"airbnb-base",
"@cordova/eslint-config/node",
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 12
},
"overrides": [
{
"files": [
"spec/**/*.js"
],
"extends": [
"@cordova/eslint-config/node-tests"
]
},
{
"files": [
"cordova-js-src/**/*.js"
],
"extends": [
"@cordova/eslint-config/browser"
]
}
],
"rules": {
// enable additional rules
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
// override configuration set by extending "eslint:recommended"
"no-empty": "warn",
"no-cond-assign": [
"error",
"always"
],
// disable rules from base configurations
"for-direction": "off"
}
}
\ No newline at end of file
......@@ -14,5 +14,11 @@
},
"scripts": {
"cypress:open": "cypress open"
},
"devDependencies": {
"@cordova/eslint-config": "^3.0.0",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment