-
Notifications
You must be signed in to change notification settings - Fork 167
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
00558e8
commit cff7811
Showing
8 changed files
with
1,566 additions
and
135 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,143 @@ | ||
/* | ||
👋 Hi! This file was autogenerated by tslint-to-eslint-config. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config | ||
It represents the closest reasonable ESLint configuration to this | ||
project's original TSLint configuration. | ||
We recommend eventually switching this configuration to extend from | ||
the recommended rulesets in typescript-eslint. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md | ||
Happy linting! 💖 | ||
*/ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module', | ||
}, | ||
plugins: ['eslint-plugin-react', '@typescript-eslint', '@typescript-eslint/tslint'], | ||
root: true, | ||
rules: { | ||
'@typescript-eslint/dot-notation': 'error', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/indent': 'off', | ||
'@typescript-eslint/naming-convention': [ | ||
'off', | ||
{ | ||
selector: 'variable', | ||
format: ['camelCase', 'UPPER_CASE', 'PascalCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
], | ||
'@typescript-eslint/no-array-constructor': 'off', | ||
'@typescript-eslint/no-dynamic-delete': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-namespace': 'error', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/quotes': 'off', | ||
'@typescript-eslint/typedef': [ | ||
'error', | ||
{ | ||
parameter: true, | ||
}, | ||
], | ||
'brace-style': ['error', '1tbs'], | ||
'comma-dangle': 'off', | ||
curly: 'error', | ||
'dot-notation': 'off', | ||
'eol-last': 'off', | ||
eqeqeq: ['off', 'always'], | ||
'guard-for-in': 'error', | ||
'id-denylist': 'error', | ||
'id-match': 'error', | ||
indent: 'off', | ||
'max-len': 'off', | ||
'no-array-constructor': 'off', | ||
'no-bitwise': 'off', | ||
'no-caller': 'error', | ||
'no-console': [ | ||
'error', | ||
{ | ||
allow: [ | ||
'warn', | ||
'dir', | ||
'timeLog', | ||
'assert', | ||
'clear', | ||
'count', | ||
'countReset', | ||
'group', | ||
'groupEnd', | ||
'table', | ||
'dirxml', | ||
'error', | ||
'groupCollapsed', | ||
'Console', | ||
'profile', | ||
'profileEnd', | ||
'timeStamp', | ||
'context', | ||
], | ||
}, | ||
], | ||
'no-constant-condition': 'error', | ||
'no-control-regex': 'error', | ||
'no-debugger': 'error', | ||
'no-duplicate-case': 'error', | ||
'no-empty': 'off', | ||
'no-empty-function': 'off', | ||
'no-eval': 'error', | ||
'no-extra-bind': 'error', | ||
'no-fallthrough': 'error', | ||
'no-invalid-regexp': 'error', | ||
'no-multi-str': 'error', | ||
'no-new-func': 'error', | ||
'no-new-wrappers': 'error', | ||
'no-octal': 'error', | ||
'no-octal-escape': 'error', | ||
'no-redeclare': 'off', | ||
'no-regex-spaces': 'error', | ||
'no-restricted-syntax': [ | ||
'error', | ||
{ | ||
message: 'Forbidden call to document.cookie', | ||
selector: 'MemberExpression[object.name="document"][property.name="cookie"]', | ||
}, | ||
], | ||
'no-sparse-arrays': 'error', | ||
'no-trailing-spaces': 'error', | ||
'no-underscore-dangle': 'off', | ||
'no-unused-expressions': 'off', | ||
'no-unused-labels': 'error', | ||
'no-with': 'error', | ||
quotes: 'off', | ||
'react/no-danger': 'error', | ||
'use-isnan': 'error', | ||
'@typescript-eslint/tslint/config': [ | ||
'error', | ||
{ | ||
rules: { | ||
whitespace: [ | ||
true, | ||
'check-branch', | ||
'check-decl', | ||
'check-operator', | ||
'check-separator', | ||
'check-type', | ||
], | ||
}, | ||
}, | ||
], | ||
}, | ||
}; |
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,27 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const { | ||
nodeModulesPath, | ||
runNode, | ||
packagesPath, | ||
packagesUiPath, | ||
packagesContentModelPath, | ||
rootPath, | ||
} = require('./common'); | ||
|
||
function eslint() { | ||
const eslintPath = path.join(nodeModulesPath, 'eslint/bin/eslint.js'); | ||
[packagesPath, packagesUiPath, packagesContentModelPath].forEach(p => { | ||
runNode( | ||
eslintPath + ' -c ' + path.join(rootPath, '.eslintrc.js') + ' ./**/lib/**/*.{ts,tsx}', | ||
p | ||
); | ||
}); | ||
} | ||
|
||
module.exports = { | ||
message: 'Running eslint...', | ||
callback: eslint, | ||
enabled: options => options.eslint, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.