Skip to content

Commit

Permalink
fix: adopt @stylistic/js rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 11, 2024
1 parent 06021b9 commit d7e3d0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configurations/canonical.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ const unicornRules = {
module.exports.recommended = {
files: ['**/*.{js,jsx,cjs,mjs,ts,tsx}'],
plugins: {
'@stylistic/js': require('@stylistic/eslint-plugin-js'),
canonical: require('eslint-plugin-canonical'),
'eslint-comments': require('eslint-plugin-eslint-comments'),
import: require('eslint-plugin-import'),
Expand All @@ -224,6 +225,7 @@ module.exports.recommended = {
],
...importRules,
...unicornRules,
'@stylistic/js/function-call-spacing': [2, 'never'],
'accessor-pairs': 2,
'array-bracket-newline': [
2,
Expand Down Expand Up @@ -343,7 +345,6 @@ module.exports.recommended = {
'func-names': [2, 'never'],
'func-style': [2, 'expression'],
'function-call-argument-newline': [2, 'consistent'],
'function-call-spacing': [2, 'never'],
'function-paren-newline': [2, 'consistent'],
'generator-star-spacing': [
2,
Expand Down
2 changes: 0 additions & 2 deletions configurations/typescript-compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports.recommended = {
before: false,
},
],
'@stylistic/ts/function-call-spacing': [2, 'never'],
'@stylistic/ts/key-spacing': [
2,
{
Expand Down Expand Up @@ -132,7 +131,6 @@ module.exports.recommended = {
'default-param-last': 0,
'dot-notation': 0,
'func-call-spacing': 0,
'function-call-spacing': 0,
indent: 0,
'init-declarations': 0,
'key-spacing': 0,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dependencies": {
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@next/eslint-plugin-next": "^14.2.15",
"@stylistic/eslint-plugin-js": "^2.10.1",
"@stylistic/eslint-plugin-ts": "^2.10.1",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
Expand Down

0 comments on commit d7e3d0f

Please sign in to comment.