Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: republish as eslint-plugin-import-x #30

Merged
merged 13 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading