Add react plugin to TSX files
This commit is contained in:
parent
68b108685e
commit
53e64234ce
1 changed files with 3 additions and 2 deletions
|
@ -45,10 +45,11 @@ tsSettings['files'] = ['**/*.ts'];
|
||||||
|
|
||||||
const tsxSettings = _.cloneDeep(tsBase);
|
const tsxSettings = _.cloneDeep(tsBase);
|
||||||
tsxSettings['files'] = ['**/*.tsx'];
|
tsxSettings['files'] = ['**/*.tsx'];
|
||||||
|
tsxSettings['plugins'] = [...tsxSpec['plugins'], "react"];
|
||||||
|
tsxSettings['extends'] = [...tsxSpec['extends'], "plugin:react/recommended"];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
"files": ['*.js', 'config/webpack/**/*.js'],
|
"files": ['*.js', 'config/webpack/**/*.js'],
|
||||||
|
@ -72,7 +73,7 @@ module.exports = {
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"no-trailing-spaces": ["error"],
|
"no-trailing-spaces": ["error"],
|
||||||
"indent": ["error", "tab"], // we use tabs for accessibility
|
"indent": ["error", "tab", {"SwitchCase": 1}], // we use tabs for accessibility
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"react": {
|
"react": {
|
||||||
|
|
Loading…
Reference in a new issue