Skip to content

Commit

Permalink
Added eslint-plugin-regexp as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 14, 2024
1 parent 2defe2e commit e2b51d0
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from '@eslint/js'
import globals from 'globals'
import json from '@eslint/json'
import markdown from '@eslint/markdown'
import * as regexp from 'eslint-plugin-regexp'
import eslintPluginYml from 'eslint-plugin-yml'

export default [
Expand All @@ -15,8 +16,9 @@ export default [
ipv4: 'readonly', marked: 'readonly', renderMathInElement: 'readonly'
}
},
plugins: { regexp },
rules: {
...js.configs.recommended.rules,
...js.configs.recommended.rules, ...regexp.configs['flat/recommended'].rules,
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects
Expand Down
85 changes: 85 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@eslint/json": "^0.6.0",
"@eslint/markdown": "^6.2.1",
"eslint": "^9.14.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-yml": "^1.15.0",
"husky": "^9.1.6"
}
Expand Down

0 comments on commit e2b51d0

Please sign in to comment.