Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. root: true,
  3. extends: [
  4. 'airbnb',
  5. 'plugin:flowtype/recommended',
  6. 'prettier',
  7. 'prettier/flowtype',
  8. 'prettier/react',
  9. ],
  10. parser: 'babel-eslint',
  11. plugins: ['flowtype'],
  12. env: {
  13. jest: true,
  14. },
  15. rules: {
  16. 'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
  17. 'react/static-property-placement': [2, 'static public field'],
  18. 'flowtype/define-flow-type': 1,
  19. 'flowtype/no-mixed': 2,
  20. 'flowtype/no-primitive-constructor-types': 2,
  21. 'flowtype/no-types-missing-file-annotation': 2,
  22. 'flowtype/no-weak-types': 2,
  23. 'flowtype/require-parameter-type': 2,
  24. 'flowtype/require-readonly-react-props': 0,
  25. 'flowtype/require-return-type': [
  26. 2,
  27. 'always',
  28. {
  29. annotateUndefined: 'never',
  30. },
  31. ],
  32. 'flowtype/require-valid-file-annotation': 2,
  33. 'flowtype/type-id-match': [2, '^([A-Z][a-z0-9]+)+Type$'],
  34. 'flowtype/use-flow-type': 1,
  35. 'flowtype/valid-syntax': 1,
  36. },
  37. settings: {
  38. flowtype: {
  39. onlyFilesWithFlowAnnotation: false,
  40. },
  41. },
  42. globals: {
  43. fetch: false,
  44. Headers: false,
  45. },
  46. };