Skip to content

Commit

Permalink
Add simple-import-sort eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Apr 29, 2024
1 parent 4fba822 commit 15610ca
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 8,483 deletions.
22 changes: 21 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"extends": ["standard", "prettier"]
"extends": ["standard", "prettier"],
"plugins": ["simple-import-sort", "unused-imports"],
"rules": {
"no-console": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"import/extensions": ["error", "ignorePackages"],
"import/no-duplicates": ["error", { "prefer-inline": true }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}
2 changes: 1 addition & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path'
import path from 'node:path'

import { createExamples } from '@meltwater/examplr'

Expand Down
Loading

0 comments on commit 15610ca

Please sign in to comment.