-
Notifications
You must be signed in to change notification settings - Fork 0
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
cc26d0c
commit 583fa0e
Showing
50 changed files
with
14,296 additions
and
4,483 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
parserOptions: { | ||
sourceType: "script" | ||
}, | ||
extends: ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"], | ||
// Need investigate problem in eslint-plugin-node | ||
rules: { | ||
"node/no-unpublished-require": "off" | ||
}, | ||
overrides: [ | ||
// Source | ||
{ | ||
// Exclude nested tests | ||
excludedFiles: ["**/__tests__/**/*", "**/__mocks__/**/*", "**/*.md"], | ||
files: ["src/**/*"], | ||
rules: { | ||
// Allow to use ECMAScript 6 modules because we use `babel` | ||
"node/no-unsupported-features/es-syntax": "off" | ||
} | ||
}, | ||
|
||
// Jest | ||
{ | ||
extends: ["plugin:itgalaxy/jest"], | ||
excludedFiles: ["**/*.md"], | ||
files: ["**/__tests__/**/*", "**/__mocks__/**/*"], | ||
rules: { | ||
// Allow to use `console` (example - `mocking`) | ||
"no-console": "off", | ||
// Allow to use ECMAScript 6 modules because we use `babel` | ||
"node/no-unsupported-features/es-syntax": "off" | ||
} | ||
}, | ||
|
||
// Markdown | ||
{ | ||
extends: ["plugin:itgalaxy/markdown"], | ||
files: ["**/*.md"], | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
impliedStrict: true | ||
} | ||
}, | ||
rules: { | ||
strict: "off", | ||
"no-undef": "off", | ||
"no-unused-vars": "off", | ||
"no-process-env": "off", | ||
"no-process-exit": "off", | ||
"no-console": "off", | ||
"import/no-unresolved": "off", | ||
"import/extensions": "off", | ||
"node/no-unpublished-require": "off", | ||
"node/no-unpublished-import": "off", | ||
"node/no-unsupported-features/es-syntax": "off" | ||
} | ||
} | ||
], | ||
root: true | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
plugins: ["remark-preset-lint-itgalaxy"] | ||
}; |
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
hooks: { | ||
"pre-commit": "lint-staged" | ||
} | ||
}; |
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,6 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
collectCoverageFrom: ["src/**/*.{js,mjs,jsx}", "!src/install.js"], | ||
testPathIgnorePatterns: ["/node_modules/", "/fixtures/", "helpers.js"] | ||
}; |
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
Oops, something went wrong.