Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ainou/code-style

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ainou/code-style - npm Package Compare versions

Comparing version 0.0.29 to 0.1.0

src/index.mjs

35

package.json
{
"name": "@ainou/code-style",
"version": "0.0.29",
"main": "src/index.js",
"version": "0.1.0",
"main": "src/index.mjs",
"type": "module",
"files": [

@@ -15,21 +16,15 @@ "src"

},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@rushstack/eslint-patch": "^1.1.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-config-prettier": "^8.3.0"
"devDependencies": {
"@eslint/js": ">=9",
"@types/node": ">=20",
"eslint": ">=9",
"eslint-config-prettier": "*",
"eslint-plugin-prettier": "*",
"eslint-plugin-react": "*",
"eslint-plugin-react-hooks": "*",
"prettier": "*",
"typescript": "*",
"typescript-eslint": "*"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"eslint": "*",
"typescript": "*"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0"
}
"license": "MIT"
}
#!/usr/bin/env node
// @ts-check
/// <reference types="@types/node" />
const nodeVersion = '20'

@@ -28,4 +31,2 @@

'eslint',
'@typescript-eslint/parser',
'@typescript-eslint/eslint-plugin',
'prettier',

@@ -55,12 +56,13 @@ 'typescript',

"printWidth": 120
}`)
}
`)
fs.writeFileSync('.eslintrc.cjs', `module.exports = {
root: true,
extends: require.resolve('@ainou/code-style'),
parserOptions: {
// tsconfigRootDir: __dirname,
// project: ['./tsconfig.eslint.json'],
fs.writeFileSync('eslint.config.mjs', `import ainouCodeStyle from '@ainou/code-style'
export default [...ainouCodeStyle]
`)
if (fs.existsSync('.eslintrc.cjs')) {
fs.unlinkSync('.eslintrc.cjs')
}
}`)

@@ -67,0 +69,0 @@ if (!fs.existsSync('.nvmrc')) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc