diff --git a/.eslintrc.json b/.eslintrc.json index 3722418..eb6b6ab 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,48 @@ { - "extends": ["next/core-web-vitals", "next/typescript"] + "extends": ["next/core-web-vitals", "next/typescript"], + "rules": { + "comma-dangle": ["error", { + "objects": "always-multiline", + "arrays": "always-multiline", + "imports": "always-multiline", + "exports": "always-multiline", + "functions": "always-multiline" + }], + "max-len": ["warn", { "code": 120, "ignoreStrings": true }], + "no-param-reassign": "off", + "no-redeclare": "off", + "no-undef": "off", + "no-underscore-dangle": "off", // We have _uid from Storyblok that can't be changed + "object-curly-newline": ["error", { "consistent": true, "minProperties": 4 }], + "import/extensions": "off", + "no-shadow": "off", + "jsx-a11y/label-has-associated-control": [ 2, { + "components": [ "Label" ], + "required": { + "some": [ "nesting", "id" ] + } + }], + "quotes": [2, "single", + { "avoidEscape": true, "allowTemplateLiterals": true } + ], + "space-before-function-paren": 0, + "react/jsx-props-no-spreading": 0, + "react/jsx-handler-names": 0, + "react/jsx-fragments": 0, + "react/jsx-one-expression-per-line": 0, + "react/no-unused-prop-types": 0, + "react/require-default-props": 0, + "react/function-component-definition": [2, { + "namedComponents": ["function-declaration", "arrow-function"] + }], + "react/display-name": 0, + "import/prefer-default-export": 0, + "import/no-extraneous-dependencies": 0, + "import/no-cycle": 0, + "import/no-unresolved": 0, + "import/export": 0, + "func-names": 0, + "semi": [1, "always"], // 1 is for warning + "@next/next/no-img-element": 0 + } } diff --git a/app/components/Container/Container.styles.ts b/app/components/Container/Container.styles.ts index b5152f5..c41d13c 100644 --- a/app/components/Container/Container.styles.ts +++ b/app/components/Container/Container.styles.ts @@ -8,5 +8,5 @@ export const bgColors = { black: 'bg--black text-white', white: 'bg-white text-black', 'fog-light': 'bg-fog-light text-black', - 'red-gradient': 'bg-soe-red-gradient text-white' + 'red-gradient': 'bg-soe-red-gradient text-white', }; diff --git a/app/layout.tsx b/app/layout.tsx index 3eb292e..7769580 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ -import "./globals.css"; -import localFont from "next/font/local"; +import './globals.css'; +import localFont from 'next/font/local'; import { Source_Sans_3, Source_Serif_4 } from 'next/font/google'; import { cnb } from 'cnbuilder';