Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork134
Upgrade ESLint to v9.x and update dependencies#297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
0f0a66d
ad4bfdf
83d380c
9eb1880
9ffefe6
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import eslint from '@eslint/js' | ||
import eslintPluginUnicorn from 'eslint-plugin-unicorn' | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' | ||
import eslintPluginVue from 'eslint-plugin-vue' | ||
import globals from 'globals' | ||
import typescriptEslint from 'typescript-eslint' | ||
export default typescriptEslint.config( | ||
{ ignores: ['**/*.d.ts', '**/coverage', '**/dist', '**/docs'] }, | ||
{ | ||
extends: [ | ||
eslint.configs.recommended, | ||
...typescriptEslint.configs.recommended, | ||
...eslintPluginVue.configs['flat/recommended'], | ||
eslintPluginUnicorn.configs['flat/recommended'], | ||
], | ||
files: ['packages/**/src/**/*.{js,ts,tsx}'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
globals: globals.browser, | ||
parserOptions: { | ||
parser: typescriptEslint.parser, | ||
}, | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
'no-debugger': 'off', | ||
'unicorn/filename-case': 'off', | ||
'unicorn/no-array-for-each': 'off', | ||
'unicorn/no-null': 'off', | ||
'unicorn/prefer-dom-node-append': 'off', | ||
'unicorn/prefer-export-from': 'off', | ||
'unicorn/prefer-query-selector': 'off', | ||
'unicorn/prevent-abbreviations': 'off', | ||
'vue/require-default-prop': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.mjs'], | ||
languageOptions: { | ||
globals: { | ||
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])), | ||
...globals.node, | ||
}, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
{ | ||
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'], | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['packages/docs/build/**'], | ||
languageOptions: { | ||
globals: { | ||
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])), | ||
...globals.node, | ||
}, | ||
ecmaVersion: 5, | ||
sourceType: 'commonjs', | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
strict: 'error', | ||
}, | ||
}, | ||
eslintPluginPrettierRecommended, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @see https://prettier.io/docs/en/configuration.html | ||
* @type {import("prettier").Config} | ||
*/ | ||
const config = { | ||
printWidth: 100, | ||
semi: false, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'es5', | ||
}; | ||
export default config; |