Browse Source

style(build): Use modules over json for configs (#11618)

Evan Purkhiser 6 years ago
parent
commit
824d71b534
7 changed files with 37 additions and 40 deletions
  1. 0 14
      .eslintrc
  2. 14 0
      .eslintrc.js
  3. 0 10
      .prettierrc
  4. 0 14
      .stylelintrc
  5. 2 2
      jest.config.js
  6. 11 0
      prettier.config.js
  7. 10 0
      stylelint.config.js

+ 0 - 14
.eslintrc

@@ -1,14 +0,0 @@
-{
-  "extends": ["sentry-app"],
-  "globals": {
-    "require": false,
-    "expect": false,
-    "sinon": false,
-    "MockApiClient": true,
-    "TestStubs": true,
-    "tick": true,
-    "jest": true
-  },
-  "rules": {
-  }
-}

+ 14 - 0
.eslintrc.js

@@ -0,0 +1,14 @@
+/*eslint-env node*/
+module.exports = {
+  extends: ['sentry-app'],
+  globals: {
+    require: false,
+    expect: false,
+    sinon: false,
+    MockApiClient: true,
+    TestStubs: true,
+    tick: true,
+    jest: true,
+  },
+  rules: {},
+};

+ 0 - 10
.prettierrc

@@ -1,10 +0,0 @@
-{
-  "bracketSpacing": false,
-  "jsxBracketSameLine": false,
-  "printWidth": 90,
-  "semi": true,
-  "singleQuote": true,
-  "tabWidth": 2,
-  "trailingComma": "es5",
-  "useTabs": false
-}

+ 0 - 14
.stylelintrc

@@ -1,14 +0,0 @@
-{
-  "processors": ["stylelint-processor-styled-components"],
-  "extends": [
-    "stylelint-config-recommended",
-    "stylelint-config-styled-components"
-  ],
-  "rules": {
-    "declaration-colon-newline-after": null,
-    "block-no-empty": null,
-    "selector-type-no-unknown": [true, {
-      "ignoreTypes": ["$dummyValue"],
-    }],
-  }
-}

+ 2 - 2
jest.config.js

@@ -19,8 +19,8 @@ module.exports = {
   },
   modulePaths: ['<rootDir>/src/sentry/static/sentry'],
   setupFiles: [
-    "<rootDir>/tests/js/throw-on-react-error.js",
-    '<rootDir>/tests/js/setup.js'
+    '<rootDir>/tests/js/throw-on-react-error.js',
+    '<rootDir>/tests/js/setup.js',
   ],
   setupTestFrameworkScriptFile: '<rootDir>/tests/js/setupFramework.js',
   testMatch: ['<rootDir>/tests/js/**/?(*.)(spec|test).js?(x)'],

+ 11 - 0
prettier.config.js

@@ -0,0 +1,11 @@
+/*eslint-env node*/
+module.exports = {
+  bracketSpacing: false,
+  jsxBracketSameLine: false,
+  printWidth: 90,
+  semi: true,
+  singleQuote: true,
+  tabWidth: 2,
+  trailingComma: 'es5',
+  useTabs: false,
+};

+ 10 - 0
stylelint.config.js

@@ -0,0 +1,10 @@
+/*eslint-env node*/
+module.exports = {
+  processors: ['stylelint-processor-styled-components'],
+  extends: ['stylelint-config-recommended', 'stylelint-config-styled-components'],
+  rules: {
+    'declaration-colon-newline-after': null,
+    'block-no-empty': null,
+    'selector-type-no-unknown': [true, {ignoreTypes: ['$dummyValue']}],
+  },
+};