-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bccaa12
commit f804dd2
Showing
8 changed files
with
79 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
const RULES = [ | ||
// # unconventional js | ||
'blueprints/', | ||
'!tests/blueprints/', | ||
'vendor', | ||
|
||
// # Declaration files | ||
|
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,20 @@ | ||
const isolation = require('./isolation.cjs'); | ||
|
||
function defaults(config = {}) { | ||
return { | ||
files: config.files || ['tests/**/*-test.{js,ts}'], | ||
plugins: ['mocha'], | ||
extends: ['plugin:mocha/recommended'], | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
// We use setup to set up beforeEach hooks, etc, which should be OK | ||
'mocha/no-setup-in-describe': 'off', | ||
}, | ||
}; | ||
} | ||
|
||
module.exports = { | ||
defaults, | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
const base = require('@warp-drive/internal-config/eslint/base.cjs'); | ||
const ignore = require('@warp-drive/internal-config/eslint/ignore.cjs'); | ||
const imports = require('@warp-drive/internal-config/eslint/imports.cjs'); | ||
const isolation = require('@warp-drive/internal-config/eslint/isolation.cjs'); | ||
const mocha = require('@warp-drive/internal-config/eslint/mocha.cjs'); | ||
const node = require('@warp-drive/internal-config/eslint/node.cjs'); | ||
const parser = require('@warp-drive/internal-config/eslint/parser.cjs'); | ||
const qunit = require('@warp-drive/internal-config/eslint/qunit.cjs'); | ||
|
||
module.exports = { | ||
...parser.defaults(), | ||
|
||
plugins: [...base.plugins(), ...imports.plugins()], | ||
extends: [...base.extend()], | ||
rules: Object.assign(base.rules(), imports.rules(), isolation.rules(), {}), | ||
|
||
ignorePatterns: ignore.ignoreRules(), | ||
|
||
overrides: [ | ||
node.config(), | ||
node.defaults(), | ||
qunit.defaults({ | ||
files: ['fixtures/**/*.{js,ts}'], | ||
rules: { | ||
// Fixing these would cause test failures | ||
'prefer-const': 'off', | ||
'simple-import-sort/imports': 'off', | ||
}, | ||
}), | ||
mocha.defaults(), | ||
], | ||
}; |
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