Skip to content

Commit 51ecc5a

Browse files
committed
Use neostandard
1 parent 7597309 commit 51ecc5a

File tree

4 files changed

+899
-247
lines changed

4 files changed

+899
-247
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Bootstrap a new TypeScript module in five minutes or less.
1515
- Native [ECMAScript module] compatible with [Node.js].
1616
- Package management with [npm].
1717
- Examples with configurable options and arguments powered by [yargs] with [landlubber].
18-
- Linting with [eslint-config-love] using [ESLint].
18+
- Linting with the [JavaScript neostandard Style] using [ESLint].
1919
- [Prettier] code.
2020
- Futuristic debuggable unit testing with [AVA].
2121
- Code coverage reporting with [Istanbul] and [c8].
@@ -33,7 +33,7 @@ Bootstrap a new TypeScript module in five minutes or less.
3333
[GitHub Actions]: https://github.com/features/actions
3434
[GitHub Codespaces]: https://github.com/features/codespaces
3535
[Istanbul]: https://istanbul.js.org/
36-
[eslint-config-love]: https://github.com/mightyiam/eslint-config-love
36+
[JavaScript neostandard Style]: https://github.com/neostandard/neostandard
3737
[Keep a CHANGELOG]: https://keepachangelog.com/
3838
[Node.js]: https://nodejs.org/
3939
[Prettier]: https://prettier.io/

eslint.config.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
import { globalIgnores } from 'eslint/config'
2-
import love from 'eslint-config-love'
3-
import prettier from 'eslint-config-prettier/flat'
42
import simpleImportSort from 'eslint-plugin-simple-import-sort'
53
import unusedImports from 'eslint-plugin-unused-imports'
4+
import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
65

76
const files = ['**/*.{ts,tsx}']
87

98
export default [
10-
globalIgnores(['**/*.d.ts']),
11-
{
12-
...love,
13-
files,
14-
rules: {
15-
...love.rules,
16-
'import/extensions': ['error', 'ignorePackages'],
17-
'import/no-duplicates': ['error', { 'prefer-inline': true }],
18-
'import/no-relative-parent-imports': 'error',
19-
},
20-
},
9+
globalIgnores(resolveIgnoresFromGitignore()),
10+
...neostandard({ ts: true, noStyle: true }),
2111
{
2212
files,
2313
plugins: {
@@ -61,5 +51,4 @@ export default [
6151
'simple-import-sort/exports': 'error',
6252
},
6353
},
64-
{ ...prettier, files },
6554
]

0 commit comments

Comments
 (0)