- Notifications
You must be signed in to change notification settings - Fork0
[pull] main from coreui:main#19
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
base:main
Are you sure you want to change the base?
Changes fromall commits
746377d
72ec01f
caa1007
8d2d46b
b14949c
c54a0ab
36814f6
c2d2e7d
b1ede20
e457ffe
454be70
cdb4712
3f03770
4bfeee2
d5b9a4d
acceb01
3a57192
cb1ef1f
7c91c99
161bbd1
35276cb
58ace1b
d2ca48d
92609b2
9f24e2f
be8ae22
ef0e750
e53f0fe
9d74c9c
d260367
bb614f2
25e8ff4
46c4007
57b0f90
f451d62
e0f155f
d8fd24a
adc116d
c719c6e
b6dc072
ad0ef5e
de2290b
56e615d
08dde3d
cb15c39
e1ab484
4f128a0
f80bc4a
fd9f2a8
07027d1
0b7cbd8
1ad29c6
bee8617
3b37bd9
932d00f
c727396
38fc15a
90d8100
a2d3eb5
5688b61
a6d3bb5
1969a64
44a6c98
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Diff view
Diff view
Uh oh!
There was an error while loading.Please reload this page.
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,104 @@ | ||
import eslint from '@eslint/js' | ||
import tsParser from '@typescript-eslint/parser' | ||
import eslintPluginUnicorn from 'eslint-plugin-unicorn' | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' | ||
import eslintPluginReact from 'eslint-plugin-react' | ||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks' | ||
import globals from 'globals' | ||
import typescriptEslint from 'typescript-eslint' | ||
export default typescriptEslint.config( | ||
{ ignores: ['**/*.d.ts', '**/coverage', '**/dist', 'eslint.config.mjs'] }, | ||
{ | ||
extends: [ | ||
eslint.configs.recommended, | ||
...typescriptEslint.configs.recommended, | ||
eslintPluginUnicorn.configs['flat/recommended'], | ||
eslintPluginReact.configs.flat.recommended, | ||
eslintPluginReact.configs.flat['jsx-runtime'], | ||
], | ||
plugins: { | ||
'react-hooks': eslintPluginReactHooks, | ||
}, | ||
files: ['packages/**/src/**/*.{js,ts,tsx}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
parser: tsParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
pragma: 'React', | ||
version: 'detect', | ||
}, | ||
}, | ||
rules: { | ||
...eslintPluginReactHooks.configs.recommended.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: 5, | ||
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: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'no-console': 'off', | ||
'unicorn/prefer-module': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['packages/docs/**'], | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'unicorn/prefer-module': 'off', | ||
}, | ||
}, | ||
eslintPluginPrettierRecommended, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"npmClient": "yarn", | ||
"packages": ["packages/*"], | ||
"version": "5.7.1", | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json" | ||
} |
Uh oh!
There was an error while loading.Please reload this page.