UNPKG

eslint-config-precure

Version:

ESLint shareable config for precure

46 lines (45 loc) 1.37 kB
// @flow module.exports = { plugins: ['jest'], rules: { 'jest/no-disabled-tests': 1, 'jest/no-focused-tests': 2, 'jest/no-identical-title': 2, 'jest/valid-expect': 2, 'jest/prefer-to-have-length': 2, 'jest/prefer-to-be-undefined': 0, 'jest/prefer-to-be-null': 0, 'jest/no-large-snapshots': 0, 'jest/prefer-expect-assertions': 0, 'jest/valid-expect-in-promise': 0, 'jest/consistent-test-it': 2, 'jest/no-test-prefixes': 2, 'jest/valid-describe': 2, 'jest/lowercase-name': 0, // 日本人だぞ! 'jest/no-hooks': 0, // やはりうるさかった 'jest/no-jest-import': 2, 'jest/prefer-strict-equal': 2, 'jest/expect-expect': 2, // TODO: 一旦入れて様子見 'jest/no-alias-methods': 2, 'jest/no-test-return-statement': 2, 'jest/no-jasmine-globals': 2, 'jest/prefer-inline-snapshots': 0, 'jest/prefer-to-contain': 2, 'jest/no-test-callback': 2, 'jest/no-truthy-falsy': 2, 'jest/prefer-spy-on': 2, // よくわからない挙動をするのでOFF 'jest/prefer-todo': 0, 'jest/prefer-called-with': 2, 'jest/no-mocks-import': 0, // 必要なし 'jest/no-commented-out-tests': 0, 'jest/no-duplicate-hooks': 2, 'jest/no-export': 0, 'jest/no-if': 2, 'jest/no-try-expect': 0, }, env: { 'jest/globals': true, }, }