-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use uuid for section id, allow for duplicate names (#139)
- Loading branch information
1 parent
828ee1a
commit 60f0318
Showing
15 changed files
with
290 additions
and
231 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 |
---|---|---|
@@ -1,32 +1,39 @@ | ||
module.exports = { | ||
extends: 'erb', | ||
rules: { | ||
// A temporary hack related to IDE not resolving correct package.json | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/no-unresolved': 'error', | ||
// Since React 17 and typescript 4.1 you can safely disable the rule | ||
'react/react-in-jsx-scope': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
"prettier/prettier": ["error", { endOfLine: "off" }], | ||
extends: 'erb', | ||
rules: { | ||
// A temporary hack related to IDE not resolving correct package.json | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/no-unresolved': 'error', | ||
// Since React 17 and typescript 4.1 you can safely disable the rule | ||
'react/react-in-jsx-scope': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
'prettier/prettier': ['error', { endOfLine: 'auto' }], | ||
'@typescript-eslint/no-shadow': 'off', | ||
'no-restricted-syntax': 'off', | ||
'react-hooks/exhaustive-deps': 'off', | ||
'react/require-default-props': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'no-param-reassign': 'off', | ||
'import/prefer-default-export': 'off', | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
createDefaultProgram: true, | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below | ||
node: {}, | ||
webpack: { | ||
config: require.resolve('./.erb/configs/webpack.config.eslint.ts'), | ||
}, | ||
typescript: {}, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
createDefaultProgram: true, | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below | ||
node: {}, | ||
webpack: { | ||
config: require.resolve('./.erb/configs/webpack.config.eslint.ts'), | ||
}, | ||
typescript: {}, | ||
}, | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
}, | ||
}; | ||
}, | ||
}; |
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
Oops, something went wrong.