Skip to content

Commit

Permalink
feat!: republish as eslint-plugin-import-x (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Mar 12, 2024
1 parent d5ab2cc commit c680079
Show file tree
Hide file tree
Showing 856 changed files with 25,633 additions and 21,358 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
root = true
root=true

[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
end_of_line = lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
indent_style=space
indent_size=2
end_of_line=lf
14 changes: 6 additions & 8 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
lib
coverage
.nyc_output
node_modules
tests/files/malformed.js
tests/files/with-syntax-error
tests/files/just-json-files/invalid.json
tests/files/typescript-d-ts/
resolvers/webpack/test/files
# we want to ignore "tests/files" here, but unfortunately doing so would
test/fixtures/malformed.js
test/fixtures/with-syntax-error
test/fixtures/just-json-files/invalid.json
test/fixtures/typescript-d-ts/
# we want to ignore "test/fixtures" here, but unfortunately doing so would
# interfere with unit test and fail it for some reason.
# tests/files
# test/fixtures
248 changes: 0 additions & 248 deletions .eslintrc

This file was deleted.

68 changes: 68 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
module.exports = {
root: true,
plugins: ['eslint-plugin', 'import-x'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:eslint-plugin/recommended',
'plugin:import-x/recommended',
'plugin:prettier/recommended',
],
env: {
node: true,
es6: true,
es2017: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
},
rules: {
'@typescript-eslint/no-var-requires': 'off',

'eslint-plugin/consistent-output': ['error', 'always'],
'eslint-plugin/meta-property-ordering': 'error',
'eslint-plugin/no-deprecated-context-methods': 'error',
'eslint-plugin/no-deprecated-report-api': 'off',
'eslint-plugin/prefer-replace-text': 'error',
'eslint-plugin/report-message-format': 'error',
'eslint-plugin/require-meta-docs-description': [
'error',
{ pattern: '^(Enforce|Ensure|Prefer|Forbid).+\\.$' },
],
'eslint-plugin/require-meta-schema': 'error',
'eslint-plugin/require-meta-type': 'error',

// dog fooding
'import-x/no-extraneous-dependencies': [
'error',
{
devDependencies: ['test/**'],
optionalDependencies: false,
peerDependencies: true,
bundledDependencies: false,
},
],
'import-x/unambiguous': 'off',
},

settings: {
'import-x/resolver': {
node: {
paths: ['src'],
},
},
},

overrides: [
{
files: 'test/**',
env: {
jest: true,
},
rules: {
'import-x/default': 0,
},
},
],
}
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

Loading

0 comments on commit c680079

Please sign in to comment.