-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/update docs with flat configs (#417)
* feat(lint): apply lint * chore(docs): update descriptions for rules * feat(test): fix tests * chore(ci): update node version * chore(checkout): update version of checkout action * chore(action): update pnpm action
- Loading branch information
Showing
135 changed files
with
8,474 additions
and
8,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
import type { Config } from 'eslint-remote-tester' | ||
import { | ||
getPathIgnorePattern, | ||
getRepositories | ||
} from 'eslint-remote-tester-repositories' | ||
import { getPathIgnorePattern, getRepositories } from 'eslint-remote-tester-repositories' | ||
|
||
const config: Config = { | ||
repositories: getRepositories(), | ||
pathIgnorePattern: getPathIgnorePattern(), | ||
extensions: ['js', 'jsx', 'ts', 'tsx', 'cts', 'mts'], | ||
repositories: getRepositories(), | ||
pathIgnorePattern: getPathIgnorePattern(), | ||
extensions: ['js', 'jsx', 'ts', 'tsx', 'cts', 'mts'], | ||
|
||
concurrentTasks: 3, | ||
cache: false, | ||
logLevel: 'info', | ||
concurrentTasks: 3, | ||
cache: false, | ||
logLevel: 'info', | ||
|
||
eslintrc: { | ||
root: true, | ||
env: { es6: true }, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { jsx: true } | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.mts', '*.cts'], | ||
parser: '@typescript-eslint/parser' | ||
} | ||
], | ||
extends: ['plugin:vitest/all'] | ||
} | ||
eslintrc: { | ||
root: true, | ||
env: { es6: true }, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { jsx: true } | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.mts', '*.cts'], | ||
parser: '@typescript-eslint/parser' | ||
} | ||
], | ||
extends: ['plugin:vitest/all'] | ||
} | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,36 @@ | ||
import vitest from 'eslint-plugin-vitest' | ||
|
||
export default [ | ||
vitest.configs.recommended | ||
] | ||
// import tseslint from 'typescript-eslint' | ||
// import js from '@eslint/js' | ||
// import vitest from 'eslint-plugin-vitest' | ||
// | ||
// export default tseslint.config( | ||
// js.configs.recommended, | ||
// { | ||
// files: ['**/*.js'], | ||
// languageOptions: { | ||
// sourceType: 'module', | ||
// ecmaVersion: 2024, | ||
// parserOptions: { | ||
// ecmaFeatures: { | ||
// impliedStrict: true | ||
// } | ||
// } | ||
// }, | ||
// | ||
// // (first parameter of a rule) 0: off, 1: warning, 2: error | ||
// rules: { | ||
// // my rules… | ||
// } | ||
// }, | ||
// { | ||
// files: ['**/*.test.js'], | ||
// plugins: { vitest }, | ||
// rules: { | ||
// ...vitest.configs.recommended.rules | ||
// }, | ||
// languageOptions: { | ||
// globals: { | ||
// ...vitest.environments.env.globals | ||
// } | ||
// } | ||
// } | ||
// ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { bench } from 'vitest' | ||
|
||
bench('normal sorting', () => { | ||
const x = [1, 5, 4, 2, 3] | ||
x.sort((a, b) => { | ||
return a - b | ||
}) | ||
const x = [1, 5, 4, 2, 3] | ||
x.sort((a, b) => { | ||
return a - b | ||
}) | ||
}, { time: 1000 }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.