-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NOBUG): Start migration to new eslint config format
- Loading branch information
Showing
13 changed files
with
292 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { tsRecommended } from '@tybalt/eslint-config'; | ||
|
||
export default [ | ||
tsRecommended, | ||
{ | ||
ignorePatterns: ['packages/**/node_modules'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.cy.js'], | ||
extends: ['plugin:cypress/recommended'], | ||
}, | ||
], | ||
} | ||
]; |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { tsRecommended } from "@tybalt/eslint-config"; | ||
|
||
export default [ | ||
tsRecommended | ||
]; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import pluginCypress from 'eslint-plugin-cypress/flat' | ||
|
||
export default [ | ||
pluginCypress.configs.recommended, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import tybaltEslintPlugin from '@tybalt/eslint-plugin'; | ||
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin'; | ||
import tseslint from 'typescript-eslint'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
const recommended = [ | ||
js.configs.recommended, | ||
{ | ||
parserOptions: { | ||
ecmaVersion: 2022, | ||
}, | ||
plugins: { | ||
'@tybalt/eslint-plugin': tybaltEslintPlugin, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...globals.es2022, | ||
...globals.browser | ||
} | ||
}, | ||
rules: { | ||
'@tybalt/component-names-are-multi-word': 'error', | ||
}, | ||
} | ||
]; | ||
|
||
const tsRecommended = tseslint.config( | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
'@tybalt/eslint-plugin': tybaltEslintPlugin, | ||
'@typescript-eslint': typescriptEslintPlugin | ||
}, | ||
languageOptions: { | ||
parser: '@typescript-eslint/parser', | ||
globals: { | ||
...globals.es2022, | ||
...globals.browser | ||
} | ||
}, | ||
rules: { | ||
'@tybalt/component-names-are-multi-word': 'error', | ||
}, | ||
} | ||
); | ||
|
||
export { | ||
recommended, | ||
tsRecommended, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "@tybalt/eslint-config", | ||
"version": "0.2.0", | ||
"description": "eslint configs for Tybalt", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"Tybalt", | ||
"eslint", | ||
"config" | ||
], | ||
"author": "Doug Wade <douglas.b.wade@gmail.com>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"eslint": ">= 9" | ||
}, | ||
"dependencies": { | ||
"@eslint/js": "^9.5.0", | ||
"globals": "^12.4.0", | ||
"typescript-eslint": "7.13.1" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default [ | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
}, | ||
} | ||
]; |
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,27 +1,5 @@ | ||
const rules = require('./rules/index.js'); | ||
|
||
module.exports = { | ||
rules, | ||
configs: { | ||
recommended: { | ||
parserOptions: { | ||
ecmaVersion: 2022, | ||
}, | ||
plugins: ['@tybalt/eslint-plugin'], | ||
env: { browser: true, es2022: true }, | ||
extends: ['eslint:recommended'], | ||
rules: { | ||
'@tybalt/component-names-are-multi-word': 'error', | ||
}, | ||
}, | ||
'ts-recommended': { | ||
plugins: ['@typescript-eslint', '@tybalt/eslint-plugin'], | ||
parser: '@typescript-eslint/parser', | ||
env: { browser: true, es2022: true }, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | ||
rules: { | ||
'@tybalt/component-names-are-multi-word': 'error', | ||
}, | ||
}, | ||
}, | ||
rules | ||
}; |
Oops, something went wrong.