Skip to content

Commit

Permalink
Switch to .xo-config.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Oct 31, 2021
1 parent 2fe3ff1 commit 1a62f15
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 91 deletions.
91 changes: 91 additions & 0 deletions .xo-config.cjs
@@ -0,0 +1,91 @@
module.exports = {
ignores: [
'media/**',
'test/config/fixtures/config-errors/test.js',
'test/line-numbers/fixtures/line-numbers.js',
'test-tap/fixture/snapshots/test-sourcemaps/build/**',
'test-tap/fixture/report/edgecases/ast-syntax-error.cjs',
'examples/typescript-*/**/*.ts',
],
rules: {
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
'newlines-between': 'always',
},
],
'import/newline-after-import': 'error',
'unicorn/require-post-message-target-origin': 'off',
},
overrides: [
{
files: [
'index.d.ts',
'types/*.d.ts',
],
rules: {
'import/extensions': 'off',
},
},
{
files: 'plugin.d.ts',
rules: {
'node/prefer-global/url': 'off',
},
},
{
files: '{test,test-{d,tap}}/**/*.ts',
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
},
},
{
files: '{test,test-{d,tap}}/**',
rules: {
'import/no-anonymous-default-export': 'off',
'node/prefer-global/buffer': 'off',
'node/prefer-global/process': 'off',
},
},
{
files: 'test-tap/**',
rules: {
'promise/prefer-await-to-then': 'off',
'unicorn/error-message': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/prevent-abbreviations': 'off',
},
},
{
files: 'test/macros/fixtures/macros.js',
rules: {
'ava/no-identical-title': 'off',
},
},
{
files: [
'examples/**',
'test/snapshot-*/fixtures/**',
],
rules: {
'unicorn/prefer-module': 'off',
},
},
{
files: 'examples/**',
rules: {
'ava/no-only-test': 'off',
},
},
],
};
91 changes: 0 additions & 91 deletions .xo-config.json

This file was deleted.

0 comments on commit 1a62f15

Please sign in to comment.