forked from pass-culture/pass-culture-app-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint-local-rules.js
23 lines (22 loc) · 1.31 KB
/
eslint-local-rules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const independentMocks = require('./eslint-custom-rules/independent-mocks')
const nbspInText = require('./eslint-custom-rules/nbsp-in-text')
const noRawText = require('./eslint-custom-rules/no-raw-text')
const noStringCheckBeforeComponent = require('./eslint-custom-rules/use-ternary-operator-in-jsx')
const todoFormat = require('./eslint-custom-rules/todo-format')
const apostropheInText = require('./eslint-custom-rules/apostrophe-in-text')
const useTheRightTestUtils = require('./eslint-custom-rules/use-the-right-test-utils')
const noUseOfAlgoliaMultipleQueries = require('./eslint-custom-rules/no-use-of-algolia-multiple-queries')
const noHardcodeIdInSvg = require('./eslint-custom-rules/no-hardcoded-id-in-svg')
const noTruthyCheckAfterQueryAllMatchers = require('./eslint-custom-rules/no-truthy-check-after-queryAll-matchers')
module.exports = {
'independent-mocks': independentMocks,
'nbsp-in-text': nbspInText,
'no-hardcoded-id-in-svg': noHardcodeIdInSvg,
'no-raw-text': noRawText,
'use-ternary-operator-in-jsx': noStringCheckBeforeComponent,
'todo-format': todoFormat,
'apostrophe-in-text': apostropheInText,
'use-the-right-test-utils': useTheRightTestUtils,
'no-use-of-algolia-multiple-queries': noUseOfAlgoliaMultipleQueries,
'no-truthy-check-after-queryAll-matchers': noTruthyCheckAfterQueryAllMatchers,
}