forked from EnigmaticaModpacks/Enigmatica2Expert
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will help other developers to get all the necessary tools for formatting with VSC.
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
// typescript: { tsconfigPath: 'tsconfig.json' }, | ||
gitignore: false, | ||
rules : { | ||
|
||
// Override @antfu rules to my personal prefferences | ||
'style/key-spacing' : ['error', { align: 'colon' }], | ||
'antfu/if-newline' : 'off', | ||
'style/comma-dangle': [ | ||
'error', | ||
{ | ||
functions: 'never', | ||
imports : 'always-multiline', | ||
exports : 'always-multiline', | ||
arrays : 'always-multiline', | ||
objects : 'always-multiline', | ||
}, | ||
], | ||
|
||
// Lower error levels | ||
'style/max-statements-per-line': 'warn', | ||
|
||
// Sort imports | ||
'import/order': 'off', | ||
'sort-imports': 'off', | ||
|
||
'unused-imports/no-unused-imports': 'error', | ||
'unused-imports/no-unused-vars' : 'error', | ||
|
||
'perfectionist/sort-array-includes' : 'error', | ||
'perfectionist/sort-astro-attributes': 'error', | ||
// 'perfectionist/sort-classes' : 'error', | ||
'perfectionist/sort-enums' : 'error', | ||
'perfectionist/sort-exports' : 'error', | ||
'perfectionist/sort-imports' : ['error', { | ||
type : 'natural', | ||
groups: [ | ||
'side-effect', | ||
'side-effect-style', | ||
'type', | ||
'builtin', | ||
'external', | ||
'internal-type', | ||
'internal', | ||
['parent-type', 'sibling-type', 'index-type'], | ||
['parent', 'sibling', 'index'], | ||
'object', | ||
'unknown', | ||
], | ||
}], | ||
'perfectionist/sort-interfaces' : 'error', | ||
'perfectionist/sort-jsx-props' : 'error', | ||
'perfectionist/sort-maps' : 'error', | ||
'perfectionist/sort-named-exports' : 'error', | ||
'perfectionist/sort-named-imports' : 'error', | ||
'perfectionist/sort-object-types' : 'error', | ||
// 'perfectionist/sort-objects': 'error', | ||
'perfectionist/sort-svelte-attributes': 'error', | ||
'perfectionist/sort-union-types' : 'error', | ||
'perfectionist/sort-vue-attributes' : 'error', | ||
}, | ||
}, { | ||
files: ['**/*.md'], | ||
rules: { | ||
'style/no-trailing-spaces': '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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"experimentalDecorators": true, | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true | ||
}, | ||
"include": ["**/*.js", "**/*.ts"], | ||
"exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts"] | ||
} |