Skip to content

Commit

Permalink
feat: add some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi-toma committed Jun 17, 2019
1 parent 4a4931e commit 8376c17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ module.exports = {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// React
"react/jsx-filename-extension": ["error", { extensions: [".jsx", ".tsx"] }],
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
"react/prop-types": ["off", {}],

},
settings: {
// Append 'ts' extensions to Airbnb 'import/resolver' setting
"import/resolver": {
node: {
extensions: [".mjs", ".js", ".ts", ".json"],
extensions: [".js", ".ts", ".jsx", ".tsx", ".json"],
},
},
// Append 'ts' extensions to Airbnb 'import/extensions' setting
"import/extensions": [".js", ".ts", ".mjs", ".jsx", ".tsx"],
},
};

0 comments on commit 8376c17

Please sign in to comment.