We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14c4a39 commit f823b18Copy full SHA for f823b18
src/config/helpers/build-eslint.js
@@ -13,6 +13,13 @@ const prettier = withBaseConfig('eslint-config-prettier')
13
14
const hasReact = hasAnyDep('react')
15
16
+/**
17
+ * Helper that applies some rules conditionally based on whether the TypeScript
18
+ * parser and type-aware linting rules are enabled
19
+ *
20
+ * @param {boolean} [typescript] - whether specific TypeScript parsing is applied
21
+ * @param {boolean} [react] - whether in React support is enabled
22
+ */
23
const parserRules = (typescript = false, react = false) => {
24
const isOff = off => (off ? 'off' : 'error')
25
0 commit comments