-
Notifications
You must be signed in to change notification settings - Fork 8
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
5c2c5b7
commit 69e3030
Showing
11 changed files
with
2,896 additions
and
2,061 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 |
---|---|---|
|
@@ -14,6 +14,3 @@ indent_size = 4 | |
|
||
[*.py] | ||
indent_size = 4 | ||
|
||
[*.{xml,xml.dist}] | ||
indent_size = 4 |
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,65 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
parserOptions: { | ||
sourceType: "script" | ||
}, | ||
extends: ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"], | ||
overrides: [ | ||
// Source | ||
{ | ||
// Exclude nested tests | ||
excludedFiles: ["**/__tests__/**/*", "**/__mocks__/**/*", "**/*.md"], | ||
files: ["src/**/*"], | ||
parserOptions: { | ||
sourceType: "module" | ||
}, | ||
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__/**/*"], | ||
parserOptions: { | ||
sourceType: "module" | ||
}, | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
|
||
const MIN_BABEL_VERSION = 7; | ||
|
||
module.exports = api => { | ||
api.assertVersion(MIN_BABEL_VERSION); | ||
api.cache(true); | ||
|
||
return { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
node: "8.9.0" | ||
} | ||
} | ||
] | ||
] | ||
}; | ||
}; |
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.