Skip to content

Commit

Permalink
Add @stylistic/eslint-plugin and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO committed Dec 7, 2023
1 parent f29ced5 commit f260474
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
22 changes: 19 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "plugin:@stylistic/all-extends"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"ignorePatterns": ["node_modules", "*example.js"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
Expand All @@ -21,7 +20,24 @@
"args": "none",
"ignoreRestSiblings": false
}
]
],
"@stylistic/array-bracket-newline": "off",
"@stylistic/array-element-newline": "off",
"@stylistic/arrow-parens": "off",
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/function-call-argument-newline": "off",
"@stylistic/function-paren-newline": "off",
"@stylistic/indent": ["error", "tab"],
"@stylistic/max-len": "off",
"@stylistic/no-mixed-operators": "off",
"@stylistic/no-tabs": "off",
"@stylistic/object-property-newline": "off",
"@stylistic/one-var-declaration-per-line": "off",
"@stylistic/padded-blocks": "off",
"@stylistic/quote-props": ["error", "consistent-as-needed"],
"@stylistic/quotes": ["error", "single"],
"@stylistic/semi": ["error", "never"]
},
"overrides": [
{
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@
"@pollyjs/adapter-node-http": "^6.0.5",
"@pollyjs/core": "^6.0.5",
"@pollyjs/persister-fs": "^6.0.5",
"eslint": "^8.15.0",
"@stylistic/eslint-plugin": "^1.4.1",
"eslint": "^8.55.0",
"is-coordinates": "^2.0.2",
"is-roughly-equal": "^0.1.0",
"tap": "^18.0.4",
"validate-fptf": "^3.0.0"
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test-unit": "tap test/lib/*.js test/*.js test/format/*.js test/parse/*.js",
"test-integration": "VCR_MODE=playback tap test/e2e/*.js",
"test-integration:record": "VCR_MODE=record tap -t60 -j1 test/e2e/*.js",
Expand Down

0 comments on commit f260474

Please sign in to comment.