Skip to content

Commit

Permalink
fix: align config files extentions (js/cjs/mjs) + remove `"type": "mo…
Browse files Browse the repository at this point in the history
…dule"` from `package.json` [ui, storybook]
  • Loading branch information
SutuSebastian committed Mar 31, 2024
1 parent 40e4e87 commit cccda3e
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 14 deletions.
1 change: 0 additions & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "storybook",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "storybook build",
"clean": "rimraf .turbo node_modules storybook-static",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 8 additions & 10 deletions packages/ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:vitest/recommended",
Expand All @@ -17,21 +17,20 @@ module.exports = {
],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
files: ["**/*.{ts,tsx}"],
plugins: ["@typescript-eslint"],
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended"],
rules: {
"@typescript-eslint/no-unused-vars": "off",
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "react", "vitest"],
plugins: ["react", "vitest"],
settings: {
react: {
version: "detect",
Expand All @@ -49,6 +48,5 @@ module.exports = {
"react/no-unescaped-entities": "off",
"tailwindcss/classnames-order": "off",
"tailwindcss/enforces-shorthand": "off",
"@typescript-eslint/no-unused-vars": "off",
},
};
1 change: 0 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"directory": "packages/ui"
},
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./lib/esm/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
Expand Down
File renamed without changes.

0 comments on commit cccda3e

Please sign in to comment.