airier 0.0.3 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.cjs ADDED
@@ -0,0 +1,6 @@
1
+ const { eslint_config } = require( './index.cjs' )
2
+
3
+ // Export the default eslint config
4
+ module.exports = {
5
+ ...eslint_config
6
+ }
@@ -1,6 +1,6 @@
1
- import { eslint_config } from 'airier'
1
+ const { eslint_config } = require( 'airier' )
2
2
 
3
3
  // Export the default eslint config
4
- export default {
4
+ module.exports = {
5
5
  ...eslint_config
6
6
  }
@@ -21,6 +21,7 @@
21
21
  "vite.config.js": "*.js,.babelrc,.nvmrc,index.html,.gitignore",
22
22
  ".env": ".env*,.*.json",
23
23
  "firebase.json": "fire*,.fire*",
24
- "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml"
24
+ "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml,.eslint*,config.*,.npm*,.nvm*,.ncu*",
25
+ "README.md": "*.md,LICENSE",
25
26
  }
26
27
  }
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm pkg set scripts.lint="eslint --fix src"
16
16
  npx husky init
17
17
 
18
18
  # Download files
19
- curl https://raw.githubusercontent.com/actuallymentor/airier/main/.eslintrc.js --output .eslintrc.js
19
+ curl https://raw.githubusercontent.com/actuallymentor/airier/main/.eslintrc.cjs --output .eslintrc.js
20
20
  curl https://raw.githubusercontent.com/actuallymentor/airier/main/.vscode/settings.json --output .vscode/settings.json
21
21
  curl https://raw.githubusercontent.com/actuallymentor/airier/main/.husky/pre-commit --output .husky/pre-commit
22
22
  curl https://raw.githubusercontent.com/actuallymentor/airier/main/.babelrc --output .babelrc
package/index.cjs ADDED
@@ -0,0 +1,6 @@
1
+ // Import the modules using ES Module syntax
2
+ const eslint_config = require('./modules/eslint_config.cjs')
3
+ const styleguide = require('./modules/styleguide.cjs')
4
+
5
+ // Export the objects in an object literal
6
+ module.exports = { eslint_config, styleguide }
@@ -1,8 +1,8 @@
1
1
  // Import the styleguide module using ES Module syntax
2
- import styleguide from './styleguide.js'
2
+ const styleguide = require( './styleguide.cjs' )
3
3
 
4
4
  // Export the configuration object using `export default`
5
- export default {
5
+ module.exports = {
6
6
 
7
7
  // Recommended features
8
8
  "extends": [ "eslint:recommended", "plugin:react/recommended" ],
@@ -3,7 +3,7 @@
3
3
  // warn: we recomment this to change, but there are instances where you can choose to ignore it
4
4
  // error: there is no reason for you to do this
5
5
 
6
- export default {
6
+ module.exports = {
7
7
 
8
8
  /* ///////////////////////////////
9
9
  // Built-in rules
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "airier",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Opinionated Eslint and VSCode style guide",
5
5
  "main": "index.js",
6
- "type": "module",
7
6
  "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "lint": "eslint --fix ."
9
8
  },
10
9
  "repository": {
11
10
  "type": "git",
@@ -18,6 +17,11 @@
18
17
  },
19
18
  "homepage": "https://github.com/actuallymentor/airier#readme",
20
19
  "peerDependencies": {
21
- "eslint-plugin-unused-imports": "^3.1.0"
20
+ "eslint-plugin-unused-imports": "^3.1.0",
21
+ "@babel/eslint-parser": "^7.24.1",
22
+ "@babel/preset-react": "^7.24.1",
23
+ "eslint": "^8.57.0",
24
+ "eslint-plugin-react": "^7.34.1",
25
+ "husky": "^9.0.11"
22
26
  }
23
27
  }
package/.eslintrc.js DELETED
@@ -1,6 +0,0 @@
1
- import { eslint_config } from 'airier'
2
-
3
- // Export the default eslint config
4
- export default {
5
- ...eslint_config
6
- }
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- // Import the modules using ES Module syntax
2
- import eslint_config from './modules/eslint_config.js'
3
- import styleguide from './modules/styleguide.js'
4
-
5
- // Export the objects in an object literal
6
- export { eslint_config, styleguide }