-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #834 from magiclabs/PDEEXP-1985-bump-magic-sdk-esl…
…int-version-to-9 chore: bump eslint version
- Loading branch information
Showing
170 changed files
with
2,561 additions
and
1,456 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
module.exports = require('@ikscodes/prettier-config'); | ||
/** | ||
* @type {import("prettier").Config} | ||
*/ | ||
const config = { | ||
arrowParens: 'avoid', | ||
printWidth: 120, | ||
singleQuote: true, | ||
}; | ||
|
||
module.exports = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import tsLint from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import globals from 'globals'; | ||
import jsxA11Y from 'eslint-plugin-jsx-a11y'; | ||
import prettier from 'eslint-plugin-prettier'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
import js from '@eslint/js'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
{ | ||
ignores: [ | ||
'**/node_modules', | ||
'**/coverage', | ||
'**/dist', | ||
'**/jest.config.ts', | ||
'scripts/bin/scaffold/template/**/*', | ||
'.prettierrc.js', | ||
], | ||
}, | ||
{ | ||
plugins: { | ||
'@typescript-eslint': tsLint, | ||
'jsx-a11y': jsxA11Y, | ||
prettier, | ||
importPlugin, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
}, | ||
|
||
files: ['**/*.ts', '**/*.tsx'], | ||
|
||
rules: { | ||
'no-alert': 'off', | ||
'no-dupe-class-members': 'off', | ||
'no-underscore-dangle': 'off', | ||
'no-useless-constructor': 'off', | ||
'no-unused-vars': 'off', | ||
'no-redeclare': 'off', | ||
'class-methods-use-this': 'off', | ||
'importPlugin/extensions': 'off', | ||
'importPlugin/no-extraneous-dependencies': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/await-thenable': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-unsafe-return': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-useless-constructor': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
}, | ||
|
||
settings: { | ||
'importPlugin/resolver': { | ||
typescript: { | ||
directory: ['**/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
|
@@ -14,9 +14,10 @@ | |
"postinstall": "husky install" | ||
}, | ||
"devDependencies": { | ||
"@eslint/compat": "^1.2.2", | ||
"@eslint/eslintrc": "^3.1.0", | ||
"@eslint/js": "^9.14.0", | ||
"@ikscodes/browser-env": "~0.3.1", | ||
"@ikscodes/eslint-config": "~7.0.2", | ||
"@ikscodes/prettier-config": "~2.0.1", | ||
"@istanbuljs/nyc-config-typescript": "~0.1.3", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/inquirer": "^8.1.1", | ||
|
@@ -29,22 +30,25 @@ | |
"@types/rimraf": "^3.0.2", | ||
"@types/tsc-watch": "^4.2.0", | ||
"@types/whatwg-url": "^6.4.0", | ||
"@typescript-eslint/eslint-plugin": "~3.4.0", | ||
"@typescript-eslint/eslint-plugin": "^7.18.0", | ||
"@typescript-eslint/parser": "7.12.0", | ||
"auto": "^11.1.2", | ||
"babel-jest": "^27.0.6", | ||
"brotli-size": "^4.0.0", | ||
"chalk": "~4.1.2", | ||
"enquirer": "^2.3.6", | ||
"esbuild": "^0.14.13", | ||
"eslint": "~7.3.1", | ||
"eslint-import-resolver-typescript": "~2.0.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsx-a11y": "~6.3.1", | ||
"eslint-plugin-prettier": "~3.1.4", | ||
"eslint-plugin-react": "~7.20.0", | ||
"eslint-plugin-react-hooks": "~4.0.4", | ||
"eslint": "9.14.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-import-resolver-typescript": "^3.6.3", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-jsx-a11y": "^6.10.2", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"eslint-plugin-react": "^7.37.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"execa": "~5.1.1", | ||
"fs-extra": "^10.0.0", | ||
"globals": "^15.12.0", | ||
"gzip-size": "^6.0.0", | ||
"husky": "^7.0.1", | ||
"inquirer": "^8.1.2", | ||
|
@@ -58,7 +62,7 @@ | |
"nyc": "13.1.0", | ||
"ora": "~5.4.1", | ||
"p-limit": "^3.1.0", | ||
"prettier": "~2.3.2", | ||
"prettier": "^3.3.3", | ||
"pretty-bytes": "^5.6.0", | ||
"react": "^16.13.1", | ||
"react-native": "^0.62.2", | ||
|
@@ -69,7 +73,7 @@ | |
"ts-node": "^10.2.0", | ||
"tsc-watch": "^4.2.9", | ||
"tslib": "^2.3.1", | ||
"typescript": "~4.5.2", | ||
"typescript": "~5.4.5", | ||
"wsrun": "^5.2.1", | ||
"zombi": "^3.3.0" | ||
}, | ||
|
@@ -81,7 +85,8 @@ | |
] | ||
}, | ||
"resolutions": { | ||
"@rollup/plugin-commonjs": "^17.0.0" | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"eslint": "9.14.0" | ||
}, | ||
"repository": "magiclabs/magic-js", | ||
"author": "Magic Labs <[email protected]>", | ||
|
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import rootEslintConfig from '../../../eslint.config.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...rootEslintConfig, | ||
{ | ||
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import rootEslintConfig from '../../../eslint.config.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...rootEslintConfig, | ||
{ | ||
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json', './test/tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
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 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,21 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import rootEslintConfig from '../../../eslint.config.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...rootEslintConfig, | ||
{ | ||
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import rootEslintConfig from '../../../eslint.config.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...rootEslintConfig, | ||
{ | ||
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import rootEslintConfig from '../../../eslint.config.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...rootEslintConfig, | ||
{ | ||
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.