Skip to content

Commit

Permalink
fix: updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Aug 21, 2024
1 parent a46b467 commit a75e18e
Show file tree
Hide file tree
Showing 31 changed files with 1,196 additions and 751 deletions.
42 changes: 0 additions & 42 deletions .eslintrc.yml

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const globals = require('globals');
const pluginJs = require('@eslint/js');
const stylisticJs = require('@stylistic/eslint-plugin-js');

module.exports = [
{
plugins: {
'@stylistic/js': stylisticJs
},
languageOptions: { globals: globals.node },
rules: {
'@stylistic/js/semi': [ 'error' ],
'@stylistic/js/indent': [ 'error', 'tab', { 'SwitchCase': 1 }],
'@stylistic/js/space-infix-ops': [ 'error' ],
'@stylistic/js/key-spacing': [ 'error', { 'mode': 'strict' }],
'@stylistic/js/keyword-spacing': [ 'error' ],
'@stylistic/js/quotes': [ 'error', 'single' ],
'@stylistic/js/comma-dangle': [ 'error', 'never' ],
'@stylistic/js/brace-style': [ 'error', '1tbs' ],
'@stylistic/js/object-curly-spacing': [ 'error', 'always', { 'objectsInObjects': false, 'arraysInObjects': false }],
'@stylistic/js/array-bracket-spacing': [ 'error', 'always', { 'objectsInArrays': false, 'arraysInArrays': false }],
'@stylistic/js/block-spacing': [ 'error', 'always' ],
'@stylistic/js/arrow-spacing': 'error',
'@stylistic/js/switch-colon-spacing': [ 'error', { 'after': true, 'before': false }],
'@stylistic/js/no-multiple-empty-lines': [ 'error', { 'max': 1 }],
'@stylistic/js/eol-last': [ 'warn', 'always' ],
'@stylistic/js/no-trailing-spaces': [ 'warn', { 'ignoreComments': true }]
}
},
pluginJs.configs.recommended
];
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Formidable = require('./src/Formidable.js');

new Formidable()
.load()
.listen();
.load()
.listen();
Loading

0 comments on commit a75e18e

Please sign in to comment.