Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 17, 2023
1 parent 358a072 commit 8d2c878
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
'plugin:@eslint-community/eslint-comments/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:i/recommended',
'plugin:i/typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@cspell/recommended',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"eslint-config-standard": "^17.1.0",
"eslint-plugin-file-progress": "^1.3.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-i": "^2.29.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-json-format": "^2.0.1",
"eslint-plugin-n": "^16.3.1",
Expand Down
3 changes: 2 additions & 1 deletion test/sample-ts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// this file should have prettier and eslint enabled!
import { Sample } from './sample-tsx';

const foo = 'baz';

Expand All @@ -18,7 +19,7 @@ const baz = bazArray

const x = (a: unknown) => a;

console.log({ baz, x });
console.log({ baz, x, Sample });

if (fooz.includes('baz')) {
console.log('baz');
Expand Down
26 changes: 23 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ __metadata:
eslint-config-standard: "npm:^17.1.0"
eslint-plugin-file-progress: "npm:^1.3.0"
eslint-plugin-html: "npm:^7.1.0"
eslint-plugin-i: "npm:^2.29.0"
eslint-plugin-import: "npm:^2.29.0"
eslint-plugin-json-format: "npm:^2.0.1"
eslint-plugin-n: "npm:^16.3.1"
Expand Down Expand Up @@ -2682,6 +2683,25 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-i@npm:^2.29.0":
version: 2.29.0
resolution: "eslint-plugin-i@npm:2.29.0"
dependencies:
debug: "npm:^3.2.7"
doctrine: "npm:^2.1.0"
eslint-import-resolver-node: "npm:^0.3.9"
eslint-module-utils: "npm:^2.8.0"
get-tsconfig: "npm:^4.6.2"
is-glob: "npm:^4.0.3"
minimatch: "npm:^3.1.2"
resolve: "npm:^1.22.3"
semver: "npm:^7.5.3"
peerDependencies:
eslint: ^7.2.0 || ^8
checksum: 169004d8bc7f2e77d349db19feadc0ac6db985cceed589556dcbf48863b5637c0fcd9f360cd3a23c3e1c886cb4ed212d2150dfc31d7b4bcfe49e98158514702b
languageName: node
linkType: hard

"eslint-plugin-import@npm:^2.29.0":
version: 2.29.0
resolution: "eslint-plugin-import@npm:2.29.0"
Expand Down Expand Up @@ -3281,7 +3301,7 @@ __metadata:
languageName: node
linkType: hard

"get-tsconfig@npm:^4.7.0":
"get-tsconfig@npm:^4.6.2, get-tsconfig@npm:^4.7.0":
version: 4.7.2
resolution: "get-tsconfig@npm:4.7.2"
dependencies:
Expand Down Expand Up @@ -5166,7 +5186,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@npm:^1.22.2, resolve@npm:^1.22.4":
"resolve@npm:^1.22.2, resolve@npm:^1.22.3, resolve@npm:^1.22.4":
version: 1.22.8
resolution: "resolve@npm:1.22.8"
dependencies:
Expand Down Expand Up @@ -5201,7 +5221,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@patch:resolve@npm%3A^1.22.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin<compat/resolve>":
"resolve@patch:resolve@npm%3A^1.22.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.3#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin<compat/resolve>":
version: 1.22.8
resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin<compat/resolve>::version=1.22.8&hash=c3c19d"
dependencies:
Expand Down

0 comments on commit 8d2c878

Please sign in to comment.